﻿namespace Skynet.CommonLibrary.ExceptionEx.Inteface
{
    /// <summary>
    /// 异常数据源
    /// </summary>
    public interface IExceptionDataSource
    {
        /// <summary>
        /// 保存到数据库中
        /// </summary>
        /// <param name="entity">异常实体</param>
        /// <returns>异常编号</returns>
        int SaveExceptionInfo(ExceptionEntity entity);

        /// <summary>
        /// 通过异常编号查找异常信息
        /// </summary>
        /// <param name="exID">异常编号</param>
        /// <returns>异常实体</returns>
        ExceptionEntity FindExceptionInfo(int exID);
    }
}
